﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;
using Volo.Abp.EventBus.Distributed;
using WMSSystem.DYB.Dto.WarehouseManagement;

namespace WMSSystem.DYB.Application
{
    public class LogService:ITransientDependency
    {
        private readonly IDistributedEventBus _distributedEventBus;

        public LogService(IDistributedEventBus distributedEventBus)
        {
            _distributedEventBus = distributedEventBus;
        }

        public virtual async Task ChangeStockCountAsync(CreateWarehouseDto dto)
        {
            await _distributedEventBus.PublishAsync(
                dto);
        }
    }
}
